package com.wanxi.arr;

public class MyArray {
    public static void main(String[] args) {
        int[] arr = {33, 5, 6, 7, 91};
        int num = 6;
        int result = -1;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] == num) {
//                System.out.println(i);
//                break;
                result = i;
            }
        }
        System.out.println(result);
    }
}
